function statevectorf = fourBytesToFloat(statevector)
statevectori = uint32(statevector);
statevectorchar = dec2hex(statevectori);
statevectorf = [];
for i = 1:length(statevectorchar)
    raw = statevectorchar(i,:);
    floatout = typecast(uint32(sscanf(raw,'%x')),'single');
    statevectorf = [statevectorf floatout];
end
end

